package cn.ycl.system.api.order.domain;


import java.io.Serializable;
import java.util.Objects;

/**
 * @Author YuanChangLiang
 * @Date 2020/12/7 16:34
 */

public class BaseEntity implements Serializable {
    private static final long serialVersionUID = 757097916620967707L;
    /**
    每页条数
     */
    private Integer pageSize;
    /**
    第几页
     */
    private Integer pageNum;

    public Integer getPageSize() {
        if(Objects.isNull(pageSize)){
            return 10;
        }
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getPageNum() {
        if(Objects.isNull(pageNum)){
            return 1;
        }
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }
}
